package com.ruoyi.project.module.releaseProperty.service;

import java.util.List;

import com.ruoyi.project.module.application.domain.Application;
import org.shoukaiseki.koori.model.ResultKoori;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.module.releaseProperty.mapper.ReleasePropertyMapper;
import com.ruoyi.project.module.releaseProperty.domain.ReleaseProperty;
import com.ruoyi.project.module.releaseProperty.service.IReleasePropertyService;
import com.ruoyi.common.support.Convert;
import javax.annotation.Resource;

/**
 * 发布属性 服务层实现
 * 
 * @author ruoyi
 * @date 2018-12-06
 */
@Service
public class ReleasePropertyServiceImpl implements IReleasePropertyService 
{
	@Resource
	private ReleasePropertyMapper releasePropertyMapper;

	/**
     * 查询发布属性信息
     * 
     * @param configReleasePropertyId 发布属性ID
     * @return 发布属性信息
     */
    @Override
	public ReleaseProperty selectReleasePropertyById(Long configReleasePropertyId)
	{
	    return releasePropertyMapper.selectReleasePropertyById(configReleasePropertyId);
	}
	
	/**
     * 查询发布属性列表
     * 
     * @param releaseProperty 发布属性信息
     * @return 发布属性集合
     */
	@Override
	public List<ReleaseProperty> selectReleasePropertyList(ReleaseProperty releaseProperty)
	{
	    return releasePropertyMapper.selectReleasePropertyList(releaseProperty);
	}
	
    /**
     * 新增发布属性
     * 
     * @param releaseProperty 发布属性信息
     * @return 结果
     */
	@Override
	public int insertReleaseProperty(ReleaseProperty releaseProperty)
	{
	    return releasePropertyMapper.insertReleaseProperty(releaseProperty);
	}
	
	/**
     * 修改发布属性
     * 
     * @param releaseProperty 发布属性信息
     * @return 结果
     */
	@Override
	public int updateReleaseProperty(ReleaseProperty releaseProperty)
	{
	    return releasePropertyMapper.updateReleaseProperty(releaseProperty);
	}

	/**
     * 删除发布属性对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteReleasePropertyByIds(String ids)
	{
		return releasePropertyMapper.deleteReleasePropertyByIds(Convert.toStrArray(ids));
	}
}
